<template>
    <van-nav-bar :title="title" :left-text="!isHome?'返回':''" :leftArrow="!isHome">
        <template #right>
            <van-space v-show="!!title" size="2em">
                <van-icon name="search" size="24" />
                <van-icon name="add-o" size="24" />
            </van-space>
        </template>
    </van-nav-bar>
</template>
<script lang="ts" setup>
import { defineProps } from 'vue';
defineProps({
    title: {
        type: String,
        default: ''
    },
    isHome: {
        type: Boolean,
        default: false
    }
})
</script>